package com.chh.mysso.common.exception;

/**
 * 系统业务异常基类
 * 
 * @author chh
 *
 */
@SuppressWarnings("serial")
public class BaseException extends RuntimeException {
	
	/**
	 * 错误码
	 */
	private String errorCode;
	
	/**
	 * 错误信息
	 */
	private String message;

    public BaseException(String errorCode,String message) {
        super(message);
    	this.errorCode = errorCode;
    	this.message = message;
    }

    public BaseException(String errorCode, String message, Throwable cause) {
        super(message, cause);
    	this.errorCode = errorCode;
    	this.message = message;
    }

	/**
	 * @return the errorCode
	 */
	public String getErrorCode() {
		return errorCode;
	}

	/**
	 * @param errorCode the errorCode to set
	 */
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}
    
}
